<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>css_利用浮动进行画页面</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .topDiv{
            width: 960px;
            margin: 0 auto;
        }
        .clearFlx::after{
            content: "";
            display: block;
            clear: both;
        }
        .leftFlx{
            float: left;
        }
        .rightFlx{
            float: right;
        }
        .logo{
            width: 200px;
            height: 80px;
            text-align: center;
            line-height: 80px;
            background-color: orange;
        }
        .banner1{
            width: 540px;
            height: 80px;
            text-align: center;
            line-height: 80px;
            background-color: orange;
            margin: 0 10px;

        }
        .banner2{
            width: 200px;
            height: 80px;
            text-align: center;
            line-height: 80px;
            background-color: orange;
        }
        .menu{
            width: 960px;
            height: 40px;
            background-color: orange;
            text-align: center;
            line-height: 30px;
            margin-top: 10px;
            margin-bottom: 10px;
        }
        .item1,.item2{
            width: 368px;
            height: 198px;
            border: 1px solid teal;
            text-align: center;
            line-height: 198px;
        }
        .item1{
            margin-right: 10px;
        }
        .bottom{
            margin-top: 10px;
        }
        .item3,.item4,.item5,.item6{
            width: 178px;
            height: 198px;
            border: 1px solid teal;
            text-align: center;
            line-height: 198px;
        }
        .item3,.item4,.item5{
            margin-right: 10px;
        }
        .left{
            margin-right: 10px;
        }
        .item7,.item8,.item9{
            width: 198px;
            height: 128px;
            border: 1px solid teal;
            text-align: center;
            line-height: 128px;
        }
        .item8{
            margin: 10px 0;
        }
        .footer{
            height: 60px;
            background-color: orange;
            text-align: center;
            line-height: 60px;
            margin-top: 10px;
        }
    </style>
</head>
<body>
<!--整个页面-->
    <div class="topDiv clearFlx">
<!--顶部区域-->
        <div class="logo leftFlx">logo</div>
        <div class="banner1 leftFlx">banner1</div>
        <div class="banner2 leftFlx">banner2</div>
<!--菜单-->
        <div class="menu leftFlx">菜单</div>
<!--内容区-->
        <div class="content clearFlx">
<!--左侧-->
            <div class="left leftFlx">
        <!--上方-->
                <div class="top clearFlx">
                    <div class="item1 leftFlx">栏目一</div>
                    <div class="item2 leftFlx">栏目二</div>
                </div>
        <!--下部-->
                <div class="bottom clearFlx">
                    <div class="item3 leftFlx">栏目三</div>
                    <div class="item4 leftFlx">栏目四</div>
                    <div class="item5 leftFlx">栏目五</div>
                    <div class="item6 leftFlx">栏目六</div>
                </div>
            </div>
<!--右部-->
            <div class="right rightFlx">
                <div class="item7">栏目七</div>
                <div class="item8">栏目八</div>
                <div class="item9">栏目九</div>
            </div>
        </div>
<!--底部-->
        <div class=footer>页脚</div>
    </div>
<!--左导航-->

</body>
</html>
